package com.mspbots.teams.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotEmpty;

/**
 * com.mspbots.core.config.PropertiesConfiguration
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/10/31
 */
@Configuration
@EnableConfigurationProperties(PropertiesConfiguration.TeamsProperties.class)
public class PropertiesConfiguration {

    @Data
    @ConfigurationProperties(prefix = "mspbots.teams.no.message")
    public static class TeamsProperties {
        /**
         * teams no received user check duration
         */
        @NotEmpty
        private Integer day = 30;
    }
}
